import * as vscode from "vscode";
import { checkWorkFolder, openWorkFolder } from "./utils/CommonUtil";
import { start } from "./start";

// 当扩展程序被激活时调用此方法
// noinspection JSUnusedGlobalSymbols
export function activate(context: vscode.ExtensionContext) {
    console.log("LeetCode Ultimate 扩展程序激活");
    if (checkWorkFolder()) {
        start(context);
    } else {
        openWorkFolder(context);
    }
}

// 当扩展程序被停用时调用此方法
// noinspection JSUnusedGlobalSymbols
export function deactivate() {
    console.log("扩展程序退出");
}
